package decorators;

import contracts.ContractException;
import services.BlocService;
import services.TerrainService;

public class TerrainDecorator implements TerrainService{
	private TerrainService delegate;

	public TerrainDecorator(TerrainService delegate) {
		this.delegate = delegate;
	}

	@Override
	public int getNombreColonnes() {
		return this.delegate.getNombreColonnes();
	}

	@Override
	public int getNombreLignes() {
		return this.delegate.getNombreLignes();
	}

	@Override
	public BlocService getBloc(int colonne, int ligne) throws ContractException {
		return this.delegate.getBloc(colonne, ligne);
	}

	@Override
	public void init(int nbColonnes, int nbLignes) throws ContractException{
		this.delegate.init(nbColonnes, nbLignes);

	}

}
